package com.macro.mall.seckill.service;

import com.macro.mall.model.SmsFlashPromotion;

import java.util.List;

/**
 * @program: mall
 * @ClassName: SecKillService
 * @description: 秒杀相关业务
 * @author: tan
 * @create: 2024-06-25 15:57
 **/
public interface SecKillService {
    /**
     *
     * 获取距离当前时间最近的活动
     * @date 2024/6/25 16:06
     * @param promotions
     * @return com.macro.mall.model.SmsFlashPromotion
     */
    SmsFlashPromotion findCurrentPromotion(List<SmsFlashPromotion> promotions);
}
